import { defineConfig } from 'vitepress-theme-async/config';

export default defineConfig({
    srcDir: './',

    // 站点语言、标题、描述
    lang: 'zh-CN',
    title: '呆鸭不呆',
    description: '博客',

    themeConfig: {
        user: {
            name: '呆鸭不呆',
            firstName: '不呆',
            lastName: '呆鸭',
            describe: '个人博客'
        },
        topBars: [
            { title: 'Home', url: '/' },
            { title: 'About', url: '/about' },
        ],
        links: [
            {
                name: 'Vitepress',
                url: 'https://vitepress.dev',
                image: 'https://vitepress.dev/vitepress-logo-mini.svg',
                desc: 'VitePress is a Static Site Generator (SSG) designed for building fast, content-centric websites',
            },
            {
                name: '白云苍狗',
                url: 'https://www.imalun.com/',
                image: 'https://www.imalun.com/images/avatar.jpg',
                desc: '醒，亦在人间；梦，亦在人间',
            },
        ],
        rightside: {
            readmode: true,
            aside: true,
        },
        footer: {
            powered: {
                enable: true
            },
            beian: {
                enable: false,
                icp: ''
            },
            // 起始年份
            copyrightYear: '2024',
            // 运行时间
            liveTime: {
                enable: true,
                prefix: 'footer.tips,',
                startTime: '04 / 16 / 2024 00:00:00'
            }
        },
        // 上下篇文章
        postPagination: {
            enable: true,
            type: 'small'
        },
        outline: {
            level: [2, 6],
        },
        favicon: {
            logo: '/favicon.svg',
            icon16: '/favicon.svg',
            icon32: '/favicon.svg',
            visibilitychange: true,
        },
    },
});
